from multiprocessing import Process
n=0
def func():
    global n
    n+=1
    print(n)
    
if __name__ == '__main__':
    p_l=[]
    for i in range(10):
        p=Process(target=func)
        p.start()
        p_l.append(p)
    for p in p_l:p.join()
    print(n)















